package main

import "fmt"

func main() {
	m1 := make(map[int]string)
	m1[0] = "yangjie"
	val, ok := m1[0]
	fmt.Println(val, ok)

	m2 := map[string]int{
		"yj":  123,
		"lxf": 23,
	}
	delete(m2, "yj")
	fmt.Println(m2)

	for k, v := range m2 {
		fmt.Println(k, v)
	}
}
